﻿namespace Steamworks
{
    using System;
    using System.Runtime.InteropServices;

    [StructLayout(LayoutKind.Sequential)]
    public struct SteamLeaderboard_t : IEquatable<SteamLeaderboard_t>, IComparable<SteamLeaderboard_t>
    {
        public ulong m_SteamLeaderboard;
        public SteamLeaderboard_t(ulong value)
        {
            this.m_SteamLeaderboard = value;
        }

        public override string ToString()
        {
            return this.m_SteamLeaderboard.ToString();
        }

        public override bool Equals(object other)
        {
            return ((other is SteamLeaderboard_t) && (this == ((SteamLeaderboard_t) other)));
        }

        public override int GetHashCode()
        {
            return this.m_SteamLeaderboard.GetHashCode();
        }

        public bool Equals(SteamLeaderboard_t other)
        {
            return (this.m_SteamLeaderboard == other.m_SteamLeaderboard);
        }

        public int CompareTo(SteamLeaderboard_t other)
        {
            return this.m_SteamLeaderboard.CompareTo(other.m_SteamLeaderboard);
        }

        public static bool operator ==(SteamLeaderboard_t x, SteamLeaderboard_t y)
        {
            return (x.m_SteamLeaderboard == y.m_SteamLeaderboard);
        }

        public static bool operator !=(SteamLeaderboard_t x, SteamLeaderboard_t y)
        {
            return !(x == y);
        }

        public static explicit operator SteamLeaderboard_t(ulong value)
        {
            return new SteamLeaderboard_t(value);
        }

        public static explicit operator ulong(SteamLeaderboard_t that)
        {
            return that.m_SteamLeaderboard;
        }
    }
}

